<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--_meta 作为公共模版分离出去-->
<html>
<head>
<jsp:include page="/WEB-INF/pages/admin/public/meta.jsp"></jsp:include>
<!--/meta 作为公共模版分离出去-->
<title>新增文章 - 资讯管理 - H-ui.admin v3.1</title>
</head>
<body>
<article class="page-container">
<form class="form form-horizontal" id="form-provider-examine">
<input type="hidden" name="examineId" value="${examineProvider.id}">
<div class="mt-20">
	<table class="table table-border table-bordered table-bg table-hover table-sort table-responsive">
		<tr class="text-c">
			<td width="170"><div align="right">不通过原因：</div></td>
			<td colspan="2"><div align="left">${examineProvider.advice}</div></td>
			
		</tr>
		<tr class="text-c">
			<td width="170"><div align="right">服务商登录账号：</div></td>
			<td ><div align="left">${examineProvider.loginId}</div></td>
			<td >认证文件：</td>
		</tr>
		<tr class="text-c">
			<td width="170"><div align="right">服务商名称：</div></td>
			<td ><div align="left">${examineProvider.name}</div></div></td>
			<td  width="400" rowspan="8"><img width="350" src="${examineProvider.authFile}"/></td>
		</tr>
		<tr class="text-c">
			<td width="170"><div align="right">服务商地区：</div></td>
			<td ><div align="left">${examineProvider.region.name}</div></td>
		</tr>
		<tr class="text-c">
			<td width="170"><div align="right">注册时间：</div></td>
			<td ><div align="left"><fmt:formatDate value="${examineProvider.registerTime}" pattern="yyyy/MM/dd HH:mm:ss"/></div></td>
		</tr>
		<tr class="text-c">
			<td width="170"><div align="right">工作时间：</div></td>
			<td ><div align="left">${examineProvider.workTime}</div></td>			
		</tr>
		<tr class="text-c">
			<td width="170"><div align="right">服务商说明：</div></td>
			<td ><div align="left">${examineProvider.providerInfo}</div></td>			
		</tr>	
		<tr class="text-c">
			<td width="170"><div align="right">服务商手机：</div></td>
			<td ><div align="left">${examineProvider.cellphone}</div></td>			
		</tr>
		<tr class="text-c">
			<td width="170"><div align="right">QQ号：</div></td>
			<td ><div align="left">${examineProvider.qq}</div></td>
		</tr>
		<tr class="text-c">
			<td width="170"><div align="right">审核意见：</div></td>
			<td >
				<div class="formControls col-xs-8 col-sm-9">
					<textarea name="suggesttext" cols="" rows="" class="textarea"  placeholder="审核意见...147个字符以内" dragonfly="true" onKeyUp="$.Huitextarealength(this,147)"></textarea>
					<p class="textarea-numberbar"><em class="textarea-length">0</em>/147</p>
				</div>
			</td>
		</tr>
	</table>
	<div class="row cl">
		<div class="formControls col-xs-8 col-sm-9 skin-minimal">
			<div class="radio-box">
				<input type="radio" name="examine" value="3" checked>			
				<label >通过</label>
			</div>
			<div class="radio-box">
				<input type="radio" name="examine" value="4">
				<label >不通过</label>
			</div>
		</div>
	</div>
	<div class="row cl">
		<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
			<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
		</div>
	</div>
	</form>
</div>
	</form>
</article>



<!--_footer 作为公共模版分离出去-->
<jsp:include page="/WEB-INF/pages/admin/public/footer.jsp"></jsp:include> 
<!--/_footer /作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="admin/lib/jquery.validation/1.14.0/jquery.validate.js"></script> 
<script type="text/javascript" src="admin/lib/jquery.validation/1.14.0/validate-methods.js"></script> 
<script type="text/javascript" src="admin/lib/jquery.validation/1.14.0/messages_zh.js"></script>
<script type="text/javascript" src="admin/lib/webuploader/0.1.5/webuploader.min.js"></script> 
<script type="text/javascript" src="admin/lib/ueditor/1.4.3/ueditor.config.js"></script> 
<script type="text/javascript" src="admin/lib/ueditor/1.4.3/ueditor.all.min.js"> </script> 
<script type="text/javascript" src="admin/lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript">
$(function(){
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});
	
	$("#form-provider-examine").validate({
		rules:{
			adminName:{
				required:true,
				minlength:4,
				maxlength:16
			},
			realName:{
				required:true,
				minlength:2,
				maxlength:16
			},
			password:{
				required:true,
			},
			password2:{
				required:true,
				equalTo: "#password"
			},
			gender:{
				required:true,
			},
			cellphone:{
				required:true,
				isPhone:true,
			},
			email:{
				required:true,
				email:true,
			},
			adminRoleId:{
				required:true,
			},
		},
		onkeyup:false,
		focusCleanup:true,
		success:"valid",
		submitHandler:function(form){
			$(form).ajaxSubmit({
				type: 'POST',
				url: "examineProvider.action.action" ,
				data:{msg :"编辑管理员"},
				async: false,
				success: function(data){
					
					window.setTimeout(function(){
						layer.msg('已审核!',{icon:1,time:1000});
					},0);
					
					window.setTimeout(function(){
						parent.location.reload();
					},1000);
					

/* 					parent.window.setTimeout(function(){
						var index = parent.layer.getFrameIndex(window.name);
						parent.layer.close(index); 
					},0); */
					 
				},
                error: function(data){
                	alert('error');
                	layer.msg('error!',{icon:1,time:1000});
				}
			});
			
			
			
			//parent.window.opener = null; parent.window.close();
		}
	});
});
</script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>
